import home from "./home/index"
 const routes= [
  
  {
    path: '/',
    redirect: "/index",
    component:()=>import("../views/layout/index.vue"),
   children:[
         home
   ]
  },
  
    {
        path: '/login',
        name: '/login',
        meta:{
            isSms:true,
            keepAlive: true
        },
        component: ()=> import('../views/login/index.vue')
      },
      {
        
            path: "/:catchAll(.*)",
            meta:{
                  isSms:true
              },
            // redirect: "/login"  重定向
            
        component: ()=> import('../views/error-page/index.vue')
      }
]

export default routes